﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;


namespace QuickApp.Encryption
{
    public static class Encryption
    {
        public static string GetSHA1(this string value)
        {
            var data = Encoding.ASCII.GetBytes(value);
            var hashData = new SHA1Managed().ComputeHash(data);
            var hash = string.Empty;
            foreach (var item in hashData)
                hash += item.ToString("X2");
            return hash;
        }
    }
}
